package com.opensource.bykc.excel_lianxi.utils;

import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LOG {
    public static Logger logger = LoggerFactory.getLogger(LOG.class);

    public static void info(String s) {
        logger.info(s);
    }
    public static void info(Object obj) {
        logger.info(JSON.toJSONString(obj));
    }

    public static void error(String s) {
        logger.error(s);
    }

    public static  void error(String s, Throwable e) {
        logger.error(s, e);
    }
    public static void error(Throwable e){
        logger.error("", e);
    }

    public static void error(Exception e){
        logger.error("", e);
    }
    public static void warn(String s) {
        logger.warn(s);
    }
    public static void warn(String s, Exception e) {
        logger.error(s, e);
    }
    public static void debug(String s) {
        logger.debug(s);
    }
    public static void debug(Object object) {
        logger.debug("", object);
    }
}
